package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.utils.Result;

import java.util.List;

public interface CategoryService {
    Result<String> addOne(Category category);

    Result<Page<Category>> getPage(int currentPage, int pageSize);

    Result<String> deleteOne(Long ids);

    Result<String> updateById(Category category);

    Result<List<Category>> list(Category category);
}
